import mitt, {type Emitter} from 'mitt';

// 定义所有事件及其数据类型
interface AppEvents extends Record<string | symbol, unknown> {
    'apps-header': any;
}
/**
 * EventBus  class
 * @class EventBus
 * @description 消息总线
 * @author xincan
 */
const emitter: Emitter<AppEvents>= mitt<AppEvents>();
export default emitter;